home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
090
/
pctjja86.arc
/
STATEC.ARC
/
AUTO7.C
< prev
next >
Wrap
Text File
|
1985-08-14
|
292b
|
23 lines
/* auto7.c - fibernacci benchmark function */
#include "stdio.h"
#define ORDER 15
#define NIT 20
dofib()
{
int i ;
for(i=0 ; i< NIT ; i++)
{ fib(ORDER) ; }
}
int fib(n)
int n ;
{
if( n > 2 )
return( fib(n-1) + fib(n-2) ) ;
else return( 1 ) ;
}